package com.dj.ssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dj.ssm.entity.Score;
import com.dj.ssm.mapper.UserMapper;
import com.dj.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl extends ServiceImpl<UserMapper, Score> implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<Score> showSco() {

        return userMapper.showSco();
    }

    @Override
    public void addScore(Score scores) throws Exception {
        userMapper.addScore(scores);
    }

}
